package com.dtdream.emr;

import org.apache.hadoop.hive.ql.exec.Description;
import org.apache.hadoop.hive.ql.exec.UDF;

/**
 * Created by moriarty on 17-8-4.
 */
@Description("_FUNC_(col) - convert column value to string")
public final class UDFToChar extends UDF {

    public String evaluate(boolean var) {
        return String.valueOf(var);
    }

    public String evaluate(int var) {
        return String.valueOf(var);
    }

    public String evaluate(double var) {
        return String.valueOf(var);
    }

}
